<html>
<head>
<link href="css/style_question.css" type="text/css" rel="stylesheet" />
<!--<style type="text/css">
#cover{width:1280px;;height:1030px; position:absolute; top:0; left:0; z-index:2;}
#topbox{position:absolute; left:26%; top:35%; width:800px; height:1030px; background-color:#FFF; z-index:3; border:10px #C8C8C8 solid;}
h1{background-color:#D5F9C8; color:#6CA738; text-align:center;}
</style>
<script type="text/javascript">
function showpopup()
{
	var a = document.getElementById("cover");
	var b = document.getElementById("topbox");
	a.style.visibility = "visible";
	b.style.visibility = "visible";
}
function hidepopup()
{
	var c = document.getElementById("cover");
	var d = document.getElementById("topbox");
	c.style.visibility = "hidden";
	d.style.visibility = "hidden";
}
</script>
</head>-->
<body>
<!--<div id="cover" style="visibility:hidden;"></div>
<div align="center" id="topbox" style="visibility:hidden;">-->
<?php 
include('config.php');
if($_POST['num_glrs']!=0 && $_POST['num_glrs']!=''){
?>
<table width="800"  border="0" cellpadding="0" bgcolor="#FDF9EE" id="table7">
	<tr>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">&nbsp;</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Location</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Longitude</font></td>
		<td width="70" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Latitude</font></td>
		<td width="82" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Owned By</font></td>
		<td width="86" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Capacity(KL)</font></td>
		<td width="82" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Status</font></td>
		<td width="102" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Condition of Reservoirs</font></td>
		<td width="148" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Connected or Not with pipeline</font></td>
			<!--<td width="106" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Risk Assessment & Analysis</font></td>-->
	</tr>
<?php 
$no=$_POST['num_glrs'];
if($no >0 ) {
for($i=1; $i<=$no; $i++)
{
?>
	<tr>
	<td><input type="text" name="glrs_id<?php echo $i;?>" id="glrs_id<?php echo $i;?>" size="18" class="txt5" value="GLR<?php echo $i;?>" readonly /></td>
		<td width="70" align="center">
	  <input type="text" name="glrs_location<?php echo $i;?>" id="glrs_location<?php echo $i;?>" size="20" class="txt5"></td>
	  <td width="70" align="center"><input type="text" name="glrs_longitude<?php echo $i;?>" id="glrs_longitude<?php echo $i;?>" size="20" class="txt5" onBlur="float1(this,67,80)"></td>
	  <td width="70" align="center"><input type="text" name="glrs_latitude<?php echo $i;?>" id="glrs_latitude<?php echo $i;?>" size="20" class="txt5" onBlur="float1(this,20,32)" /></td>
		<td align="center" width="82">
			<select size="1" name="glrs_supply<?php echo $i;?>" id="glrs_supply<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($body_to_supply as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  </select>		</td>
	 	<td align="center" width="86">
	  <input type="text" name="glrs_capacity<?php echo $i;?>" id="glrs_capacity<?php echo $i;?>" size="20" class="txt5" onKeyUp="float(this)" />		</td>
	  <td align="center" width="82">
			<select size="1" name="glrs_status<?php echo $i;?>" id="glrs_status<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($status as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  </select>		</td>
	  	<td align="center" width="102">
			<select size="1" name="glrs_condition<?php echo $i;?>" id="glrs_condition<?php echo $i;?>" class="txt5" >
				<option selected value="0">Select Type</option>
					<?php 
						foreach($condition as $key=>$val)
						{
		   					echo "<option value=\"$val\">$val</option>";
						}
					?>
	  </select>		</td>
		<td align="center" width="148">
			<font style="font-size: 9pt" face="Verdana" color="#000000">
				<input type="radio" name="glrs_connect<?php echo $i;?>" id="glrs_connect<?php echo $i;?>" value="yes">Yes &nbsp;
	  <input type="radio" name="glrs_connect<?php echo $i;?>" id="glrs_connect<?php echo $i;?>" value="no" checked="checked">No&nbsp;				            </font></td>
		<!--<td align="center" width="106"><font style="font-size: 9pt" face="Verdana" color="#000000"><a href="#" onclick="showpopup();">Risk Assessment & Analysis</a></font></td>-->		
	</tr>	
<?php 
}
}
?>
<input type="hidden" name="countglrs" id="countglrs" value="<?php echo $no;?>"/>
</table>
<?php }?>

</body>
</html>			
	